package com.xymtop.api.implement;

import com.xymtop.api.entity.IP;
import com.xymtop.api.mapper.IPMapper;
import com.xymtop.api.service.IPService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName : IPImpl
 * @Description : 版权类的实体实现
 * @Author : 肖叶茂
 * @Date: 2022/12/1  18:50
 */
@Service
public class IPImpl implements IPService {

    @Autowired
    private IPMapper ipMapper;
    @Override
    public int add(IP ip) {
        return ipMapper.add(ip.getId(),ip.getProjectid(),ip.getType(),ip.getContent(),ip.getContenttype());

    }

    @Override
    public int delete(String id) {
        return  ipMapper.delete(id);
    }

    @Override
    public List<IP> getIP(String projectid) {
        return ipMapper.getIP(projectid);
    }
}
